package com.xbongbong.saas.enums.base;

import lombok.Getter;

/**
 * 销项发票字段attr基础枚举
 * 如果非经销商、经销商类模板都有的字段，则需在该基础枚举内维护attr
 * @author zcp
 */
@Getter
public enum InvoiceBaseEnum {
    /**
     * 基本信息
     */
    BASE_INFO("other_1"),
    SHEET_NO("serialNo"),
    INVOICE_NUMBER("text_2"),
    APPLY_USER("ownerId"),
    CUSTOMER_NAME("text_3"),
    CONTRACT_ID("text_4"),
    PAYMENT_RELATIONSHIP("text_61"),
    PAYMENT_ID("text_5"),
    PAYMENT_SHEET_ID("text_62"),
    INVOICE_DATE("date_1"),
    TOTAL_MONEY("num_2"),
    // 扩展信息
    EXTEND_INFO("other_2"),
    INVOICE_TYPE("text_6"),
    CUSTOMER_INVOICE("subForm_1"),
    CUSTOMER_EXPRESS("subForm_2"),
    MEMO("text_7"),
    ATTACHMENTS("file_1"),
    // 系统信息
    SYSTEM_INFO("other_3"),
    DISTRIBUTOR_APPLY_USER_ID("long_1"),
    DISTRIBUTOR_APPLY_USER_ID_LINK_TEXT("text_81"),
    CREATOR_ID("creatorId"),
    ADD_TIME("addTime"),
    UPDATE_TIME("updateTime"),
    // 逻辑字段
    CUSTOMER_NAME_LINK_TEXT("text_8"),
    CONTRACT_ID_LINK_TEXT("text_9"),
    PAYMENT_ID_LINK_TEXT("text_10"),
    PAYMENT_SHEET_ID_LINK_TEXT("text_63"),
    IS_RED("num_3"),
    ORIGIN_ID("text_11"),
    IS_CANCEL("num_5"),
    ORIGIN_ID_LINK_TEXT("text_12"),
    HAS_RED("num_6"),;
    ;

    private final String attr;

    InvoiceBaseEnum(String attr) {
        this.attr = attr;
    }
}
